package com.liaoban.app.ui.common;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.liaoban.app.R;


/**
 * <p>空数据显示<p/>
 * Created by ybc on 17/9/19.
 */
public class EmptyView extends LinearLayout {
    private Context mCtx;
    private TextView tvNoData;

    public EmptyView(Context context) {
        super(context);
        init(context);
    }

    public EmptyView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    public EmptyView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context);
    }

    private void init(Context context) {
        mCtx = context;
        View view = LayoutInflater.from(context).inflate(R.layout.view_empty, this);
        tvNoData = (TextView) view.findViewById(R.id.tv_no_data);
    }

}
